<style>
select{padding: 5px;margin-right: 20px;color: #555555;}
</style>
<section class="vbox">
    <section class="scrollable padder">
        <ul class="breadcrumb no-border no-radius b-b b-light pull-in">
            <li><a href="#"><i class="fa fa-home"></i> 酒店管理中心</a></li>
            <li><a href="#">酒店管理</a></li>
            <li class="active"><a href="#">图片修改、添加</a></li>
        </ul>
        <div class="m-b-md">
            <h3 class="m-b-none">图片修改、添加</h3>
        </div>
        <section class="panel panel-default">
            <div class="panel-body">
            <form class="form-horizontal form-bordered form-validate" method="post" action="<?=$this->url('hotel/pictureEdit')?>" enctype="multipart/form-data" id="hotelform" >
                <div class="form-group">
                    <label class="col-sm-2 control-label">名称：</label>
                    <div class="col-sm-10">
                        <input type="text" name="title" value="<?=empty($re)?'':$re['title']?>" class="form-control" style="width: 44%;" />
                    </div>
                </div>
                <div class="form-group" style="margin-top: 10px;">
                    <label class="col-sm-2 control-label">图片：</label>
                    <div class="col-sm-10">
                        <font color="red">图片大小4M以内；最佳像素600×400；支持的格式有：jpg、gif、png；上传后一天以内审核</font><br /><br />
                        <script src="/public/assets/sysadmin/mylzp/js/bootstrap-fileupload.min.js"></script>
                        <link rel="stylesheet" href="/public/assets/sysadmin/mylzp/css/fileuplod.css">
                        <style>.btn-dark{background: #2e3e4e;}.btn-dark:hover{background: #25313e;}</style>
                        <div class="fileupload fileupload-new" data-provides="fileupload">
                            <div class="fileupload-new thumbnail" style="width: 600px;height: 400px;text-align: center;line-height: 400px;"><img src="<?=!empty($re)&&!empty($re['pcurl'])?$re['pcurl']:''?>"/></div>
                            <div class="fileupload-preview fileupload-exists thumbnail" style="width: 600px;height: 400px;text-align: center;"></div>
                            <div>
                                <span class="btn btn-file"><span class="fileupload-new">浏览</span><span class="fileupload-exists">重选</span>
            					   <input type="file" name='imagefile' title=" " />
            					</span>
                                <a href="#" class="btn fileupload-exists" data-dismiss="fileupload">移除</a>
                            </div>
                        </div>
                    </div>
                </div>
                <input type="hidden" name="id" value="<?=empty($re)?'0':$re['id']?>" />
                <input type="hidden" name="typeid" value="<?=empty($typeid)?'0':$typeid?>" />
                <input type="hidden" name="old_img" value="<?=!empty($re)&&!empty($re['pcurl'])?$re['pcurl']:''?>" />
                <div class="form-group">
                    <div class="col-sm-4 col-sm-offset-2">
                        <button type="button" onclick="window.history.go(-1);" class="btn btn-default">返 回</button>
                        <button type="submit" class="btn btn-primary show_shadefrist">保 存</button>
                    </div>
                </div>
            </form>
            </div>
        </section>
    </section>
</section>
<a href="#" class="hide nav-off-screen-block" data-toggle="class:nav-off-screen" data-target="#nav"></a>